/* 
 * Since 2008 - 2012
 */
package com.hh.bss.oa.vo.query;

import org.apache.commons.lang.builder.EqualsBuilder;
import org.apache.commons.lang.builder.HashCodeBuilder;
import org.apache.commons.lang.builder.ToStringBuilder;
import org.apache.commons.lang.builder.ToStringStyle;

import java.io.Serializable;

import java.util.*;

import com.hh.bss.base.*;
import com.hh.bss.common.page.*;
import com.hh.bss.common.page.impl.*;
import com.hh.bss.oa.dao.*;
import com.hh.bss.oa.entity.*;
import com.hh.bss.oa.service.*;
import com.hh.bss.oa.vo.query.*;
import com.hh.bss.util.*;





public class OaNewsQuery extends BaseQuery implements Serializable {
    private static final long serialVersionUID = 3148176768559230877L;
    

	/** id */
	private java.lang.Integer id;
	/** ±êÌâ */
	private java.lang.String title;
	/** ·ÖÀàid£¬×ÖµäÑ¡Ôñ */
	private java.lang.Integer category;
	/** Ö¸¶¨·Ö¹«Ë¾£¨¿ÉÑ¡) */
	private java.lang.String branchNbr;
	/** Ö¸¶¨²¿ÃÅ£¨¿ÉÑ¡),¶à²¿ÃÅÓÃ¶ººÅ¼ä¸ô */
	private java.lang.String depts;
	/** Ö¸¶¨Ô±¹¤ÕÊºÅ(¿ÉÑ¡) */
	private java.lang.String persons;
	/** ÄÚÈÝ */
	private java.lang.String content;
	/** creator */
	private java.lang.String creator;
	/** createDt */
	private java.util.Date createDtBegin;
	private java.util.Date createDtEnd;
	/** modifier */
	private java.lang.String modifier;
	/** modifiedDt */
	private java.util.Date modifiedDtBegin;
	private java.util.Date modifiedDtEnd;

	public java.lang.Integer getId() {
		return this.id;
	}
	
	public void setId(java.lang.Integer value) {
		this.id = value;
	}
	
	public java.lang.String getTitle() {
		return this.title;
	}
	
	public void setTitle(java.lang.String value) {
		this.title = value;
	}
	
	public java.lang.Integer getCategory() {
		return this.category;
	}
	
	public void setCategory(java.lang.Integer value) {
		this.category = value;
	}
	
	public java.lang.String getBranchNbr() {
		return this.branchNbr;
	}
	
	public void setBranchNbr(java.lang.String value) {
		this.branchNbr = value;
	}
	
	public java.lang.String getDepts() {
		return this.depts;
	}
	
	public void setDepts(java.lang.String value) {
		this.depts = value;
	}
	
	public java.lang.String getPersons() {
		return this.persons;
	}
	
	public void setPersons(java.lang.String value) {
		this.persons = value;
	}
	
	public java.lang.String getContent() {
		return this.content;
	}
	
	public void setContent(java.lang.String value) {
		this.content = value;
	}
	
	public java.lang.String getCreator() {
		return this.creator;
	}
	
	public void setCreator(java.lang.String value) {
		this.creator = value;
	}
	
	public java.util.Date getCreateDtBegin() {
		return this.createDtBegin;
	}
	
	public void setCreateDtBegin(java.util.Date value) {
		this.createDtBegin = value;
	}	
	
	public java.util.Date getCreateDtEnd() {
		return this.createDtEnd;
	}
	
	public void setCreateDtEnd(java.util.Date value) {
		this.createDtEnd = value;
	}
	
	public java.lang.String getModifier() {
		return this.modifier;
	}
	
	public void setModifier(java.lang.String value) {
		this.modifier = value;
	}
	
	public java.util.Date getModifiedDtBegin() {
		return this.modifiedDtBegin;
	}
	
	public void setModifiedDtBegin(java.util.Date value) {
		this.modifiedDtBegin = value;
	}	
	
	public java.util.Date getModifiedDtEnd() {
		return this.modifiedDtEnd;
	}
	
	public void setModifiedDtEnd(java.util.Date value) {
		this.modifiedDtEnd = value;
	}
	
	private String field_type;
	private String query;

	public String getField_type() {
		return field_type;
	}

	public void setField_type(String file_type) {
		this.field_type = file_type;
	}

	public String getQuery() {
		return query;
	}

	public void setQuery(String query) {
		this.query = query;
	}
        private String sort;
	private String dir;

        public String getSort() {
		return sort;
	}

	public void setSort(String sort) {
		
		this.sort = sort;
		if (!StringHelper.isEmpty(sort)&&!StringHelper.isEmpty(dir))
		  this.setSortColumns(sort+" "+dir);
	}

	public String getDir() {
		return dir;
	}

	public void setDir(String dir) {
		this.dir = dir;
	}
	public String toString() {
		return ToStringBuilder.reflectionToString(this,ToStringStyle.MULTI_LINE_STYLE);
	}
	
}

